package com.cszjzx.member.action;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class ModuleAction extends ActionSupport{
	private int module;
	HttpServletRequest request = ServletActionContext.getRequest();
	
	public int getModule() {
		return module;
	}

	public void setModule(int module) {
		this.module = module;
	}
	public String execute() throws Exception{
		request.getSession().setAttribute("module", module);
		String ret="";
		if(module==1||module==2){
			ret="login";
		}else{
			ret="stulogin";
		}
		return ret;
		
	}
}
